package com.zzyy.study;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@MapperScan("com.zzyy.study.mapper") //import org.mybatis.spring.annotation.MapperScan;
public class TransactionalMsgApplication {

	public static void main(String[] args) {
		SpringApplication.run(TransactionalMsgApplication.class, args);
	}

}


/**
 * 笔记说明：
 *
 * 1 正常提交事务+正常发送到MQ
 * 	1.1 StudentServiceImpl调用register(StudentDTO studentDTO)方法，提交事务+发送MQ
 * 	1.2 DefaultMsgSender里面的send(List<Object> msgList)方法
 *
 */